﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Globalization;
using System.Linq;

using SBPweb.PlAzureNet.Server.Data.Actors;
using SBPweb.PlAzureNet.Server.Data.Context;

using SBPweb.PlAzureNet.Server.Library.Operations;

namespace SBPweb.PlAzureNet.Server.Library.Services
{

    partial class DataService
    {

        internal IEnumerable<long> FetchRoundIds()
        {
            using (var context = DataTablesContext.CreateContextInstance())
            {
                return context.Rounds.Where(x => !x.IsClosed).Select(x => x.Id).ToList();
            }
        }

    }

}